{% block back_button_widget %}
{% set attr = attr|merge({'class': 'btn ' ~ attr.class|default('btn-primary ')}) %}
{% spaceless %}
    {% if label is empty %}
        {% set label = name|humanize %}
    {% endif %}
    <a href="{{ target_url }}" {{ block('button_attributes') }}>
        {# optionally add an icon to a button (with icon_button form type) #}
        {% if icon_class is defined %}
            <span class="glyphicon glyphicon-{{ icon_class }}"></span>
        {% endif %}
        {{ label|trans({}, translation_domain) }}
    </a>
{% endspaceless %}
{% endblock back_button_widget %}
